package com.bw.home.api

import com.bw.lib_http.CommonHttpRetrofitAnnotation
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object HomeServerModule {

    // 提供HomeApiServer
    @Provides
    @Singleton
    fun getHomeApiServer(@CommonHttpRetrofitAnnotation retrofit: Retrofit): HomeApiServer = retrofit.create(HomeApiServer::class.java)
}